Owen Taylor [Thu, 11 Jun 1998 17:52:12 +0000 (17:52 +0000)]
Fixed broken list-removal code.
Thu Jun 11 13:09:00 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (remove_cache_line): Fixed broken
list-removal code.
* gtk/gtktext.c: (gtk_text_delete_(forward/backward)_cahr)
Check bounds before deleting.
Owen Taylor [Thu, 11 Jun 1998 03:19:39 +0000 (03:19 +0000)]
Support ACLOCAL_FLAGS
Wed Jun 10 23:21:33 1998 Owen Taylor <otaylor@gtk.org>
* autogen.sh: Support ACLOCAL_FLAGS
Manish Singh [Thu, 11 Jun 1998 01:45:22 +0000 (01:45 +0000)]
#define GTK_HAVE_ACCEL_GROUP
-Yosh
Owen Taylor [Thu, 11 Jun 1998 00:52:24 +0000 (00:52 +0000)]
Added missing quotes.
Wed Jun 10 20:54:37 1998 Owen Taylor <otaylor@gtk.org>
* gtk-config.in: Added missing quotes.
Raja R Harinath [Thu, 11 Jun 1998 00:27:08 +0000 (00:27 +0000)]
Renamed from G_COMPILED_WITH_DEBUGGING.
* acconfig.h (GTK_COMPILED_WITH_DEBUGGING): Renamed from
G_COMPILED_WITH_DEBUGGING.
Raja R Harinath [Thu, 11 Jun 1998 00:12:59 +0000 (00:12 +0000)]
Explain check better.
* configure.in (fd_set): Explain check better.
* acinclude.m4: New file. Contains `libtool.m4' from libtool-1.2,
the version from which gtk+'s libtool forked. Needed for people
who use post-1.2 alphas of libtool.
Raja R Harinath [Wed, 10 Jun 1998 23:52:31 +0000 (23:52 +0000)]
Remove last remaining file
Owen Taylor [Wed, 10 Jun 1998 23:44:55 +0000 (23:44 +0000)]
glib/* Moved to glib module
Wed Jun 10 19:36:35 1998 Owen Taylor <otaylor@gtk.org>
* glib/* Moved to glib module
* INSTALL Makefile.am acconfig.h autogen.sh configure.in
gtk-config.in gtk.m4 gdk/Makefile.am gtk/Makefile.am
configuration changes for the above:
- Use AM_PATH_GLIB by default to find glib; also accept
a --with-glib option for using an uninstalled glib.
- Put --enable-debug information into config.h so
that we rebuild when it changes. (was in glibconfig.h)
Lars Hamann [Wed, 10 Jun 1998 21:48:21 +0000 (21:48 +0000)]
adapted clist pixmap clipping
* gtk/gtkctree.c (draw_row): adapted clist pixmap clipping
* gtk/gtknotebook.h (struct _GtkNotebookClass):
* gtk/gtknotebook.c (gtk_real_notebook_switch_page):
added missing argument (according to Joseph Coleman's bug report)
* gtk/gtknotebook.c (gtk_notebook_set_focus_child): new class
function to fix notebook focus handling
Owen Taylor [Wed, 10 Jun 1998 16:59:28 +0000 (16:59 +0000)]
Renamed g_const_pointer => gconstpointer.
Tim Janik [Wed, 10 Jun 1998 07:32:52 +0000 (07:32 +0000)]
prevent gdk_init() from segfaulting when invoked with (NULL, NULL); (this
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
invoked with (NULL, NULL); (this worked sometime ago).
* gtk/gtktypeutils.h:
* gtk/gtktypeutils.c: enum and flags type creation can now be done
through gtk_type_register_enum() and gtk_type_register_flags(),
which allow to specify the enum value arrays directly.
the NULL terminated value arrays can be retrived through
gtk_type_enum_get_values() and gtk_type_flags_get_values();
(gtk_type_children_types): new function to query derived types.
Tim Janik [Wed, 10 Jun 1998 04:55:22 +0000 (04:55 +0000)]
enum and flags type creation can now be done through
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.h:
* gtk/gtktypeutils.c: enum and flags type creation can now be done
through gtk_type_register_enum() and gtk_type_register_flags(),
which allow to specify the enum value arrays directly.
the NULL terminated value arrays can be retrived through
gtk_type_enum_get_values() and gtk_type_flags_get_values();
Raja R Harinath [Wed, 10 Jun 1998 02:15:50 +0000 (02:15 +0000)]
Thinko... The ChangeLog entry still stands.
Raja R Harinath [Wed, 10 Jun 1998 02:10:23 +0000 (02:10 +0000)]
Add $(srcdir) where needed (in the rule), and removed it where not needed
1998-06-09 Raja R Harinath <harinath@cs.umn.edu>
* gtk/Makefile.am (gtk.defs,gtktypebuiltins*): Add $(srcdir)
where needed (in the rule), and removed it where not needed
(in the dependencies).
Raja R Harinath [Wed, 10 Jun 1998 01:04:46 +0000 (01:04 +0000)]
Pass $srcdir in environment to genmarshal.pl. Look for `gtkmarshal.list'
1998-06-09 Raja R Harinath <harinath@cs.umn.edu>
* gtk/Makefile.am (gtkmarshal.c gtkmarshal.h): Pass $srcdir in
environment to genmarshal.pl.
* gtk/genmarshal.pl: Look for `gtkmarshal.list' in $srcdir.
Tim Janik [Wed, 10 Jun 1998 00:54:54 +0000 (00:54 +0000)]
more const pointer corrections.
Owen Taylor [Tue, 9 Jun 1998 23:18:11 +0000 (23:18 +0000)]
Removed g_object_pointer_hash, which was just g_direct_hash.
Tue Jun 9 18:44:57 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkobject.c: Removed g_object_pointer_hash, which
was just g_direct_hash.
Mon May 25 19:54:20 1998 Owen Taylor <otaylor@gtk.org>
* configure.in: x_libs=, not $x_libs=. Enough said.
(Case only hit for --disable-xshm)
Mon May 25 12:08:14 1998 Owen Taylor <otaylor@gtk.org>
* configure.in (LDFLAGS): Add to $CFLAGS and $LDFLAGS
when testing for X libraries, don't replace them. Because
the user might have specified the path to the X libraries
themself before running configure.
* examples/**.c: Changed all gpointer * to gpointer
Sat May 23 21:54:05 1998 Owen Taylor <otaylor@gtk.org>
* configure.in (LDFLAGS): Bomb out with a moderately
helpful message if detection of X libraries fails.
Sat May 23 18:57:06 1998 Owen Taylor <otaylor@gtk.org>
[ Combination of:
gtk-rrh-980412-0.patch (Raja R Harinath <harinath@cs.umn.edu>)
gtk-jbuhler-980516-0 (Jeremy Buhler <jbuhler@cs.washington.edu>) ]
* gdk/gdk.h gdk/gdkcc.c gdk/gdkfont.c gtk/gtkmain.c
gtk/gtksignal.c gtk/gtktext.c:
Fixups for warnings from adding const to type of GHashFunc,
GCompareFunc
* gtk/gtkcombo.c (gtk_combo_entry_key_press): Minor style/
ansi-warnings fixups.
Tue Jun 9 17:47:33 1998 Owen Taylor <otaylor@gtk.org>
* glib.h: Remove #error - HP/UX.
Sat May 23 19:00:01 1998 Owen Taylor <otaylor@gtk.org>
[ Combination of:
gtk-rrh-980412-0.patch (Raja R Harinath <harinath@cs.umn.edu>)
gtk-jbuhler-980516-0 (Jeremy Buhler <jbuhler@cs.washington.edu>) ]
* glib.h ghash.c gstring.c gdataset.c gutils.c:
- Added new typedef g_const_pointer; expunged all incorrect
uses of 'const gpointer'.
- Fixed up warnings that that created,
- Changed GHashFunc and GCompareFunc to take g_const_pointer
arguments. (Necessary, but will cause warnings in existing
code until fixed)
- Added other new const in harmless positions.
Federico Mena Quintero [Tue, 9 Jun 1998 21:01:45 +0000 (21:01 +0000)]
Removed the fleur_cursor field. Now the cursor is created/destroyed on
1998-06-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.h (struct _GtkHandleBox): Removed the
fleur_cursor field. Now the cursor is created/destroyed on demand
by the routines that need it.
* gtk/gtkhandlebox.c (gtk_handle_box_button_changed):
(gtk_handle_box_motion): The fleur cursor is created and destroyed
only when needed.
Elliot Lee [Tue, 9 Jun 1998 20:16:12 +0000 (20:16 +0000)]
Fix for people using name mangling
Elliot Lee [Tue, 9 Jun 1998 20:10:48 +0000 (20:10 +0000)]
Just a convenience to parallel gtk-config
Just a convenience to parallel gtk-config
Manish Singh [Tue, 9 Jun 1998 10:33:56 +0000 (10:33 +0000)]
Warning cleanups.. cvsignore stuff
-Yosh
Tim Janik [Tue, 9 Jun 1998 08:21:20 +0000 (08:21 +0000)]
renamed the newly created gtk_enum_get_values and gtk_enum_set_values to
Tue Jun 9 09:57:09 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.h:
* gtk/gtktypeutils.c: renamed the newly created gtk_enum_get_values and
gtk_enum_set_values to gtk_type_enum_get_values and
gtk_type_enum_set_values respectively, since they are actually type
system features.
* gtk/gtktypebuiltins_evals.c: oops, screwed the NULL termination with
my last commit. ;)
Tim Janik [Tue, 9 Jun 1998 07:14:34 +0000 (07:14 +0000)]
removed some bogus commas.
Tim Janik [Tue, 9 Jun 1998 07:11:55 +0000 (07:11 +0000)]
new functions gtk_selection_data_copy and gtk_selection_data_free.
Tue Jun 9 01:57:23 1998 Tim Janik <timj@gtk.org>
* gtk/gtkselection.h:
* gtk/gtkselection.c: new functions gtk_selection_data_copy and
gtk_selection_data_free.
* gtk/gtkwidget.c (gtk_widget_class_init): fixed gtk_signal_new() call
for "selection_received", which was completely bogus.
* other fixups to gtk_signal_new() calls all over the place.
* gtk/gtktypebuiltins.h: types as variables (formerly macros).
* gtk/gtktypebuiltins_vars.c: type variable implementations.
* gtk/gtktypebuiltins_ids.c: array entries for builtin type
declarations.
* gtk/gtktypebuiltins_evals.c: enum value arrays.
* gtk/gtk-boxed.defs: gtk and gdk structure definitions, used to build
gtk.defs.
* gtk/gtk.defs: generated file with scheme syntax for type definitions
of gtk and gdk structures and enums.
* gtk/gtktypeutils.h:
* gtk/gtktypeutils.c: reworked type ids, so they are variables not
macros anymore (this fixes binary incompatibility with new enum
definitions).
* gtk/gtkwidget.c (gtk_widget_real_key_press_event): proccess possible
key bindings for this widget.
* gtk/gtkwindow.c (gtk_window_key_press_event): chain parent class'
handler.
* gtk/gtkobject.h:
* gtk/gtkobject.c: removed gtk_object_class_new_user_signal_no_recurse()
again. new functions gtk_object_class_user_signal_new () and
gtk_object_class_user_signal_newv (), to feature the GtkSignalRunType
flag on the signal creation.
Mon Jun 8 20:52:21 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.h: new signal GtkContainer::set_focus_child.
Tim Janik [Mon, 8 Jun 1998 04:09:21 +0000 (04:09 +0000)]
check for func in g_[s]list_insert_sorted and g_[s]list_find_custom
Tim Janik [Mon, 8 Jun 1998 03:38:24 +0000 (03:38 +0000)]
wrapped enum definitions with glib macros.
Mon Jun 8 02:52:37 1998 Tim Janik <timj@gtk.org>
* gdk/gdkprivate.h:
* gdk/gdktypes.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkobject.h: wrapped enum definitions with glib macros.
* reworked enum value array generation code. gtk.defs is a generated
file now.
Elliot Lee [Mon, 8 Jun 1998 01:37:27 +0000 (01:37 +0000)]
Start of marshalling centralization.
Start of marshalling centralization.
Please check this over for sanity. I think the perl script and Makefile might
need fixing up to allow builddir != srcdir
I will start converting all the widgets to use this scheme if no problems
arise.
Manish Singh [Sun, 7 Jun 1998 23:43:00 +0000 (23:43 +0000)]
hrm.. extra #pragma..
-Yosh
Manish Singh [Sun, 7 Jun 1998 23:22:42 +0000 (23:22 +0000)]
silly typo
-Yosh
Elliot Lee [Sun, 7 Jun 1998 20:18:21 +0000 (20:18 +0000)]
Added g_s?list_find_custom functions to allow user to specify a
Added g_s?list_find_custom functions to allow user to specify a
GCompareFunc to determine whether a node matches or not.
If you have a better idea for naming the functions, please, make it so! :)
Elliot Lee [Sun, 7 Jun 1998 17:37:15 +0000 (17:37 +0000)]
Allow the user to pass --enable-mem-check and --enable-mem-profile at
Allow the user to pass --enable-mem-check and --enable-mem-profile at
compile time.
Tim Janik [Sun, 7 Jun 1998 13:44:34 +0000 (13:44 +0000)]
feature check menu items in the compatibility code (this required me to
Sun Jun 7 14:34:31 1998 Tim Janik <timj@gtk.org>
* gtk/gtkitemfactory.c (gtk_item_factory_create_menu_entries): feature
check menu items in the compatibility code (this required me to remove
the "<check>" part from the menu item name, grrr).
Tim Janik [Sun, 7 Jun 1998 12:22:45 +0000 (12:22 +0000)]
further additions to fit the gimp's code. additions to the dumping code to
Sun Jun 7 10:53:02 1998 Tim Janik <timj@gtk.org>
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: further additions to fit the gimp's code.
additions to the dumping code to feature GtkPatternSpec.
even found a bug to fix in the original code ;)
Marius Vollmer [Sun, 7 Jun 1998 12:00:55 +0000 (12:00 +0000)]
New prototypes. New functions.
* gdk/gdk.h (gdk_color_copy, gdk_color_free): New prototypes.
* gdk/gdk.c (gdk_color_copy, gdk_color_free): New functions.
Marius Vollmer [Sun, 7 Jun 1998 12:00:26 +0000 (12:00 +0000)]
*** empty log message ***
Tim Janik [Sun, 7 Jun 1998 07:52:26 +0000 (07:52 +0000)]
support different types of callbacks, to maintain existing code.
Sun Jun 7 09:36:04 1998 Tim Janik <timj@gtk.org>
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: support different types of callbacks, to
maintain existing code.
... changes to the item factory to ease support of the gimp's code...
Tim Janik [Sun, 7 Jun 1998 07:05:12 +0000 (07:05 +0000)]
remove these files, we got gtkaccelgroup.[ch] now.
Tim Janik [Sun, 7 Jun 1998 06:48:56 +0000 (06:48 +0000)]
fixed an assertment.
Sat Jun 6 06:01:24 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_emitv): fixed an assertment.
* gtk/makeenums.awk: a script to generate the GtkEnumValue arrays from,
this should eventually be done by gentypeinfo.el somewhen.
* gtk/gtkenumvalues.c: new generated file to hold GtkEnumValue arrays.
* gtk/gtktypeutils.h: new function gtk_enum_values() to retrive all the
enum values of an enum type.
* gtk/gtk.defs:
* gtk/gtkcurve.h:
* gtk/gtkobject.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkenums.h:
brought enum/flags definitions in sync, added a few more enum
definitions for bindings and pattern matching.
* some more macro and GtkType fixups in various places.
* gdk/gdktypes.h (enum): added a new value GDK_AFTER_MASK, which is used
as a key-release modifier for the binding system.
Fri Jun 5 06:06:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenu.h (struct _GtkMenu): removed GList*children, since it
was a stale list pointer that is already present in GtkMenuShell.
* gtk/gtkmenushell.h (struct _GtkMenuShellClass): added a signal
GtkMenuShell::selection_done which is emitted after the menu shell
poped down again and all possible menu items have been activated.
Thu Jun 4 02:20:42 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): flush the x-queue
before activation of the menuitem, so the menu is actually taken off the
screen prior to any menu item activation.
* gtk/gtkctree.c (gtk_ctree_get_row_data): allow function invokation
for NULL nodes.
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: new function gtk_widget_stop_accelerator to stop
the emission of the "add-accelerator" signal on a widget. this is
usefull to prevent accelerator installation on certain widgets.
* gtk/gtknotebook.c (gtk_notebook_menu_item_create): keep the menu
labels left justified, by setting their alignment. stop accelerator
installation for the menu items, since we use dynamic menus.
Wed Jun 3 06:41:22 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenufactory.c: adaptions to use the new accel groups. people
should *really* use GtkItemFactory. this is only for preserving source
compatibility where possible, use of GtkMenuFactory is deprecated as of
now.
* gtk/gtkobject.h (gtk_object_class_add_user_signal): new function
to create user signals of type GTK_RUN_NO_RECURSE. don't know why i
missed this possibility when i added gtk_object_class_add_user_signal
in late january.
* gtk/gtkmain.c (gtk_init): ignore subsequent function calls.
Sun May 31 07:31:09 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.h:
* gtk/gtkaccelgroup.c: new implementation of the accelerator concept.
* gtk/gtkaccellabel.h:
* gtk/gtkaccellabel.c: new widget derived from GtkLabel whitch features
display of the accelerators associated with a certain widget.
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c: new widget, item factory with automatic rc
parsing and accelerator handling.
* gtk/gtkmenu.c (gtk_menu_reposition): new function to care for
positioning a menu.
(gtk_menu_map): removed the allocation code.
(gtk_menu_size_allocate): care for redrawing of children and resize
our widget->window correctly.
(gtk_menu_key_press): feature the new accelerator groups.
* gtk/gtkmenuitem.c (gtk_menu_item_size_allocate): reposition the
submenu if neccessary.
* gtk/gtkmenuitem.c:
* gtk/gtkcheckmenuitem.c:
* gtk/gtkradiomenuitem.c: use GtkAccelLabel in the *_new_with_label()
function variants.
* gdk/gdk.c:
(gdk_keyval_from_name):
(gdk_keyval_name): new functions for keyval<->key-name associations.
(gdk_keyval_to_upper):
(gdk_keyval_to_lower):
(gdk_keyval_is_upper):
(gdk_keyval_is_lower): new functions to check/translate keyvalues with
regards to their cases.
Wed May 27 00:48:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_class_path): new function to calculate a
widget's class path.
(gtk_widget_path): new function to calculate a widget's name path.
* gtk/gtkrc.c: newly introduced GtkPatternSpec structures to speed up
pattern matching, features reversed pattern matches.
Manish Singh [Sat, 6 Jun 1998 21:16:57 +0000 (21:16 +0000)]
Commented out the MEM_PROFILE and MEM_CHECK from gmem.c, causing problems
with GdkImages.
Updates some .cvsignores
-Yosh
Elliot Lee [Fri, 5 Jun 1998 21:00:15 +0000 (21:00 +0000)]
Add \n's on the end of g_prints in the mem profiling code.
Add \n's on the end of g_prints in the mem profiling code.
rhlabs [Thu, 4 Jun 1998 16:04:09 +0000 (16:04 +0000)]
Set package version to 1.0.4 in anticipation of upcoming release.
Dr Mike
BST 1998 Tony Gale [Thu, 4 Jun 1998 11:15:55 +0000 (11:15 +0000)]
New files to automagically extract code examples from the tutorial.
Thu Jun 4 12:12:11 BST 1998 Tony Gale <gale@gtk.org>
* examples/extract.sh, examples/extract.awk:
New files to automagically extract code examples from the
tutorial.
Lars Hamann [Tue, 2 Jun 1998 19:32:33 +0000 (19:32 +0000)]
reversed test sequence for GTK_WIDGET_CAN_FOCUS and GTK_IS_CONTAINER
BST 1998 Tony Gale [Tue, 2 Jun 1998 12:08:14 +0000 (12:08 +0000)]
minor changes to support auto extraction of example code
Tue Jun 2 13:04:06 BST 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml: minor changes to support auto
extraction of example code
Jay Painter [Tue, 2 Jun 1998 02:51:46 +0000 (02:51 +0000)]
Added function gtk_clist_swap to swap two rows in a clist; I also have
finally fixed pixmap clipping so pixmaps are always cliped to the row.
Tim Janik [Tue, 2 Jun 1998 01:11:17 +0000 (01:11 +0000)]
wrote a comment describing why a hash node's key should not also get
Mon Jun 1 04:43:27 1998 Tim Janik <timj@gtk.org>
* ghash.c (g_hash_table_insert): wrote a comment describing why
a hash node's key should not also get replaced when overriding
previous entries.
Tue May 26 18:30:06 1998 Tim Janik <timj@gtk.org>
* glib.h (g_string_sized_new): new function to controll the preallocated
size of a GString.
* glib.h (g_strreversed): new function to reverse a string.
BST 1998 Tony Gale [Mon, 1 Jun 1998 11:53:08 +0000 (11:53 +0000)]
Update of Italian Tutorial to Tutorial of 24th May, from Daniele Canazza
Mon Jun 1 12:47:56 BST 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut_it.sgml: Update of Italian Tutorial
to Tutorial of 24th May, from Daniele Canazza <dcanazz@tin.it>
BST 1998 Tony Gale [Fri, 29 May 1998 12:43:18 +0000 (12:43 +0000)]
- new section on Events - change all delete_event callbacks to include a
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml:
- new section on Events
- change all delete_event callbacks to include
a GdkEvent parameter
- clean up the formatting
* examples - helloworld.c, helloworld2.c, notebook.c,
packbox.c, pixmap.c, progressbar.c, radiobuttons.c,
rulers.c, table.c, wheelbarrow.c: change all delete_event
callbacks to include a GdkEvent parameter.
Federico Mena Quintero [Wed, 27 May 1998 02:01:40 +0000 (02:01 +0000)]
New enumeration for the "mode" field of crossing events. (struct
1998-05-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdk/gdktypes.h (GdkCrossingMode): New enumeration for the "mode"
field of crossing events.
(struct _GdkEventCrossing): Added the following fields: time, x,
y, x_root, y_root, mode, focus, state.
* gdk/gdk.c (gdk_event_translate): Fill in the new fields of the
crossing event structure.
* gtk/gtkfeatures.h (GDK_HAVE_FULL_CROSSING_EVENT): Annotate
changes to the crossing event structure.
Radek Doulik [Tue, 26 May 1998 13:54:38 +0000 (13:54 +0000)]
include gdkx.h always (for GDK_ROOT_WINDOW)
Tue May 26 15:51:28 1998 Radek Doulik <gis@academy.cas.cz>
* gdk/gdk.c: include gdkx.h always (for GDK_ROOT_WINDOW)
Elliot Lee [Mon, 25 May 1998 02:41:36 +0000 (02:41 +0000)]
Revert, as per Owen's request
Elliot Lee [Sun, 24 May 1998 20:56:35 +0000 (20:56 +0000)]
Make GtkEditable use signals instead of calling klass->... for stuff. Could someone look at the get_chars routine to see how to return the value properly?
BST 1998 Tony Gale [Sun, 24 May 1998 11:23:04 +0000 (11:23 +0000)]
- GtkTooltips, update to current API - change all 'gpointer *data' to
Sun May 24 12:11:38 BST 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml:
- GtkTooltips, update to current API
- change all 'gpointer *data' to 'gpointer data'
- other minor changes
Owen Taylor [Sun, 24 May 1998 02:48:09 +0000 (02:48 +0000)]
Bombo out with a moderately helpful message if detection of X libraries
Sat May 23 21:54:05 1998 Owen Taylor <otaylor@gtk.org>
* configure.in (LDFLAGS): Bombo out with a moderately
helpful message if detection of X libraries fails.
Owen Taylor [Sat, 23 May 1998 21:55:40 +0000 (21:55 +0000)]
Locate child at (border_width,border_width), not
Sat May 23 17:48:58 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkeventbox.c (gtk_event_box_size_allocate):
Locate child at (border_width,border_width), not
(2*border_width,2*border_width). [ The border is _outside_
widget->window ]
* gdk/gdk.[ch]: added gdk_screen_width_mm/gdk_screen_height_mm
functions. [From: Alexander Larsson <alla@lysator.liu.se> ]
Arturo Espinosa [Fri, 22 May 1998 23:48:02 +0000 (23:48 +0000)]
Oops. Commited a file I should not have. Revert change
Miguel de Icaza [Fri, 22 May 1998 23:43:03 +0000 (23:43 +0000)]
Define GTK_HAVE_RC_SET_IMAGE_LOADER, to be used in gnome-libs
1998-05-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtk/gtkfeatures.h.in: Define GTK_HAVE_RC_SET_IMAGE_LOADER, to be
used in gnome-libs
Elliot Lee [Fri, 22 May 1998 21:33:44 +0000 (21:33 +0000)]
Fix size_allocate to pass on to the child even if child isn't visible.
Fix size_allocate to pass on to the child even if child isn't visible.
Also locate child at (border_width, border_width) not (0,0)
Owen Taylor [Fri, 22 May 1998 07:09:15 +0000 (07:09 +0000)]
Changed log
Owen Taylor [Fri, 22 May 1998 07:07:11 +0000 (07:07 +0000)]
Added style_set handler.
Fri May 22 03:02:40 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkhandlebox.c: Added style_set handler.
Fri May 22 02:55:57 1998 Owen Taylor <otaylor@gtk.org>
[ From: Chris Lahey <clahey@umich.edu> ]
* gtk/gtkeditable.c, gtk/gtkeditable.h,
gtk/gtktext.c, gtk/gtkentry.c: Added get_position,
and set_position functions to get and set the cursor position.
* gtk/gtkeditable.c: Restored "insert_text" and "delete_text" to
signal status. Make GtkText do user-controlled insertion
and deletion through the Editable widget so that these
signals are properly emitted.
* gtk/gtkentry.c: Changed gtk_entry_set_visibility to
display asterisks instead of empty space when visible = FALSE)
CEST 1998 Paolo Molaro [Fri, 22 May 1998 06:55:20 +0000 (06:55 +0000)]
use GTK_TYPE_GDK_EVENT in (un)?select_row signal.
Fri May 22 08:51:10 CEST 1998 Paolo Molaro <lupus@debian.org>
* gtk/gtkclist.c: use GTK_TYPE_GDK_EVENT in (un)?select_row
signal.
Elliot Lee [Thu, 21 May 1998 21:09:19 +0000 (21:09 +0000)]
clog ent for changes
Elliot Lee [Thu, 21 May 1998 19:26:19 +0000 (19:26 +0000)]
I should have named it gtk_rc_set_image_loader() initially - fixed
Elliot Lee [Thu, 21 May 1998 19:24:01 +0000 (19:24 +0000)]
Allow user to set a custom image loading routine for loading bg_pixmap's
Allow user to set a custom image loading routine for loading bg_pixmap's specified in the
gtkrc's.
Owen Taylor [Wed, 20 May 1998 03:41:28 +0000 (03:41 +0000)]
Use pthread_attr_init() as a test function, since most of the rest of
Tue May 19 23:41:04 1998 Owen Taylor <otaylor@gtk.org>
* configure.in: Use pthread_attr_init() as a test function,
since most of the rest of -lpthread is macros on DU4.
Mon May 18 22:14:39 1998 Owen Taylor <otaylor@gtk.org>
(Yasuhiro SHIRASAKI <joke@awa.tohoku.ac.jp> : gtk-joke-980517-0.patch)
* gutils.c: Restored a missing prototype for g_vsprintf.
Tim Janik [Wed, 20 May 1998 03:31:30 +0000 (03:31 +0000)]
conditionally define NULL, FALSE and TRUE. (g_mem_chunk_create): new
Wed May 20 05:02:26 1998 Tim Janik <timj@gtk.org>
* glib.h: conditionally define NULL, FALSE and TRUE.
(g_mem_chunk_create): new convenience macro as a short hand for
g_mem_chunk_new().
(g_chunk_free): new convenience macro to be consistent with g_chunk_new.
Elliot Lee [Tue, 19 May 1998 22:33:24 +0000 (22:33 +0000)]
Add GDK_SUBSTRUCTURE_NOTIFY_MASK
Add GDK_SUBSTRUCTURE_NOTIFY_MASK
Fixed GDK_DESTROY handling WRT GnomeRootwin widget.
Elliot Lee [Tue, 19 May 1998 16:17:00 +0000 (16:17 +0000)]
gdk_region_get_clipbox() lets you get a rectangle around the region.
gdk_region_get_clipbox() lets you get a rectangle around the region.
Paolo Molaro [Tue, 19 May 1998 10:17:31 +0000 (10:17 +0000)]
Tue, 19 May 1998 11:51:02 +0200 Paolo Molaro <lupus@debian.org>
* added generic functions for completion in glib.
* used the above functions in the gtkcombo widget.
Elliot Lee [Mon, 18 May 1998 22:36:05 +0000 (22:36 +0000)]
entry for previous change
Elliot Lee [Mon, 18 May 1998 22:34:43 +0000 (22:34 +0000)]
Allow GTK_DEBUG=signals - VERY useful ;-)
Allow GTK_DEBUG=signals - VERY useful ;-)
Elliot Lee [Mon, 18 May 1998 16:23:29 +0000 (16:23 +0000)]
Forgotten entry for visibility_notify_event
Forgotten entry for visibility_notify_event
Tim Janik [Mon, 18 May 1998 04:31:03 +0000 (04:31 +0000)]
changed "proximity-in-event", "drop-data-available-event",
Mon May 18 04:01:41 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_class_init): changed "proximity-in-event",
"drop-data-available-event", "drop-enter-event" and "drop-leave-event"
to be of runtype GTK_RUN_LAST.
* gtk/gtkcontainer.c (gtk_container_class_init): likewise for
"need-resize".
* gtk/gtktipsquery.c (gtk_tips_query_class_init): likewise for
"widget-selected".
Tim Janik [Sun, 17 May 1998 11:35:55 +0000 (11:35 +0000)]
provide usefull default specifications for identifier_spec and
Sun May 17 10:48:27 1998 Tim Janik <timj@gtk.org>
* gscanner.c (g_scanner_unexp_token): provide usefull default
specifications for identifier_spec and symbol_spec.
* glib.h: new functions g_slist_nth_data and g_list_nth_data to return
the data of the nth element in the list.
Tim Janik [Sat, 16 May 1998 07:31:06 +0000 (07:31 +0000)]
quiet the compiler about uninitialized gc.
Tim Janik [Sat, 16 May 1998 07:22:00 +0000 (07:22 +0000)]
g_strdup() the text retrived from GtkEntry. only intercept the Tab key if
Sat May 16 09:04:32 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.c (gtk_file_selection_key_press): g_strdup() the
text retrived from GtkEntry. only intercept the Tab key if there
was some text to complete.
Owen Taylor [Sat, 16 May 1998 02:14:09 +0000 (02:14 +0000)]
Basic thread-awareness:
Fri May 15 21:16:54 1998 Owen Taylor <otaylor@gtk.org>
Basic thread-awareness:
* acconfig.h configure.in: New option --with-threads=[yes/posix/no]
* gdk/Makefile.am gdk/gdkthreads.c: Added new functions
gdk_threads_[init/enter/leave] for applications, plus
gdk_threads_wake to wake the mainloop thread out of
the select().
* gtk/Makefile.am: gtk/testthreads.c: Test program for threads
Owen Taylor [Sat, 16 May 1998 02:13:12 +0000 (02:13 +0000)]
Basic thread-awareness:
Fri May 15 21:16:54 1998 Owen Taylor <otaylor@gtk.org>
Basic thread-awareness:
* acconfig.h configure.in: New option --with-threads=[yes/posix/no]
* gdk/Makefile.am gdk/gdkthreads.c: Added new functions
gdk_threads_[init/enter/leave] for applications, plus
gdk_threads_wake to wake the mainloop thread out of
the select().
* gtk/Makefile.am: gtk/testthreads.c: Test program for threads
Fri May 15 12:08:48 1998 Owen Taylor <otaylor@gtk.org>
* gtk/testgtk.c (list_clear): Account for the fact
that gtk_list_clear_items is not inclusive. (Clears
[start, end))
Manish Singh [Sat, 16 May 1998 01:56:43 +0000 (01:56 +0000)]
ignore furry autogened files
-Yosh
Manish Singh [Fri, 15 May 1998 23:07:59 +0000 (23:07 +0000)]
bye bye autogenerated file
-Yosh
Tim Janik [Fri, 15 May 1998 22:25:38 +0000 (22:25 +0000)]
removed sputious va_end(args) that for some reason didn't produce a
Fri May 15 22:31:49 1998 Tim Janik <timj@gtk.org>
* gscanner.c (g_scanner_unexp_token): removed sputious va_end(args) that
for some reason didn't produce a compiler wrning on my machine (is
va_end undefined for i386?).
rhlabs [Fri, 15 May 1998 20:08:30 +0000 (20:08 +0000)]
Move to v1.1
rodo [Fri, 15 May 1998 10:57:59 +0000 (10:57 +0000)]
include gdkkeysyms.h always
Fri May 15 12:31:27 1998 rodo <doulik@karlin.mff.cuni.cz>
* gdk/gdk.c: include gdkkeysyms.h always
rodo [Fri, 15 May 1998 10:34:58 +0000 (10:34 +0000)]
replaced some snprintf with g_snprintf
Fri May 15 12:32:08 1998 rodo <doulik@karlin.mff.cuni.cz>
* gscanner.c: replaced some snprintf with g_snprintf
Tim Janik [Fri, 15 May 1998 08:09:18 +0000 (08:09 +0000)]
[binray incompatibility]
[binray incompatibility]
Fri May 15 00:56:59 1998 Tim Janik <timj@gtk.org>
* glib.h: further support for gcc function attributes: G_GNUC_FORMAT,
G_GNUC_NORETURN and G_GNUC_CONST.
* gscanner.c (g_scanner_stat_mode): changed stat() to lstat().
(g_scanner_msg_handler): "\n" at end of line!
(g_scanner_foreach_symbol): new function to iterate over the symbol
table (GScanner does value-wrapping).
Fri May 15 09:44:10 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.h (struct _GtkWidgetClass): corrected returntype of
the visibility_notify_event method and changed method order.
Tim Janik [Thu, 14 May 1998 21:16:43 +0000 (21:16 +0000)]
chagelog fixups (yea there are even bugs in the changelog entries, fear!)
Tim Janik [Thu, 14 May 1998 21:13:18 +0000 (21:13 +0000)]
typedef gint gboolean; this is needed to provide portability with
Thu May 14 04:14:12 1998 Tim Janik <timj@gtk.org>
* glib.h: typedef gint gboolean;
this is needed to provide portability with big-endian platforms (e.g.
try sizeof(bool) for c++ on big-endians - it's 4).
this is also needed to maintain some_union.d_gint==some_union.d_gboolean.
plus, gint to gboolean casts and vice versa need to be possible without
loss.
Thu May 14 03:04:43 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.c (gtk_type_free): new function to take care about
freeing types.
(gtk_type_set_chunk_alloc): new function to allow allocation of new
types from a mem_chunk of certain size (n_chunks==0 indicates allocation
thorugh g_malloc).
* gtk/gtkobject.c (gtk_object_finalize): free an object through
gtk_type_free().
* gtk/gtkbutton.c (gtk_button_get_type): set chunk preallocation for
GtkButtons to 16.
* gtk/gtkmenuitem.c (gtk_menu_item_get_type): likewise (16).
* gtk/gtklabel.c (gtk_label_get_type): likewise (32).
4 [Thu, 14 May 1998 18:01:35 +0000 (18:01 +0000)]
gtk/gtkwidget.[ch] Added visibility_notify_event to GtkWidget
1998-05-14 <sopwith@moebuis.labs.redhat.com>
* gtk/gtkwidget.[ch] Added visibility_notify_event to GtkWidget
Can you say "binary incompatible"? :-)
Owen Taylor [Wed, 13 May 1998 05:23:26 +0000 (05:23 +0000)]
Code that compiles is nice... let's try again.
Owen Taylor [Wed, 13 May 1998 05:11:42 +0000 (05:11 +0000)]
A few more GPOINTER_TO_UINT fixes.
Wed May 13 00:53:52 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtktypeutils.c gtk/gtksignal.c gdk/gdkdnd.c: A few more
GPOINTER_TO_UINT fixes.
Owen Taylor [Wed, 13 May 1998 04:59:38 +0000 (04:59 +0000)]
A few more GPOINTER_TO_UINT fixes.
Wed May 13 00:53:52 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtktypeutils.c gtk/gtksignal.c: A few more
GPOINTER_TO_UINT fixes.
* gtk/gtksignal.c: Include <string.h> for memset.
Tue May 12 23:10:53 1998 Owen Taylor <otaylor@gtk.org>
(Maximilian Bisani <bisani@kawo2.rwth-aachen.de>: gtk-bisani-980320-0)
* gtk/gtkvruler.c gtk/gtkhruler.c gtk/gtkruler.h:
Cleanups, comments and the ability to have rulers with
a reversed direction.
Owen Taylor [Wed, 13 May 1998 00:24:57 +0000 (00:24 +0000)]
Fixed up a stat() that Sopwith missed when changing stat => lstat.
Tue May 12 19:37:55 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkrc.c (gtk_rc_parse_file): Fixed up a stat()
that Sopwith missed when changing stat => lstat.
Tue May 12 19:19:29 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkinputdialog.c gtk/gtkgamma.c gtk/gtkrc.c
gtk/gtkcolorsel.c gtk/gtkclist.c gtk/testgtk.c: Use
GPOINTER_TO_INT/GINT_TO_POINTER macros where appropriate.
* gdk/gdk.c: Print sizeof() results
as g_print("%ld", (glong)sizeof(foo)), to deal with
sizeof() being long on Alpha's.
* gtk/testgtk.c: include <string.h> for strlen
Tue May 12 19:22:58 1998 Owen Taylor <otaylor@gtk.org>
* glib/glib.h: Added macros G[U]INT_TO_POINTER() and
GPOINTER_TO_[U]INT for storing small integers integers
inside pointers.
* glib/testglib.c: Print sizeof() results
as g_print("%ld", (glong)sizeof(foo)), to deal with
size_t being long on Alpha's.
Elliot Lee [Tue, 12 May 1998 22:11:56 +0000 (22:11 +0000)]
Use lstat() to tell when an rc file was modified, not stat(), because we
Use lstat() to tell when an rc file was modified, not stat(), because we
could be pointing symlinks around.
Owen Taylor [Tue, 12 May 1998 21:30:52 +0000 (21:30 +0000)]
(James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)
Tue May 12 16:54:15 1998 Owen Taylor <otaylor@gtk.org>
(James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)
* glib.h gstring.c gmessages.c: Added some missing
const to arguments.
* gutils.c (g_strsignal.c): Added missing return statements.
Tue May 12 16:56:35 1998 Owen Taylor <otaylor@gtk.org>
(James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)
* gtk/gtkbbox.h gtk/gtkcolorsel.h gtk/gtkvbbox.h:
Changed #include "gtkfoo.h" to #include <gtk/gtkfoo.h>
* gtk/gtkwindow.[ch]: Added const to gtk_window_set_wmclass
Tue May 12 15:16:10 1998 Owen Taylor <otaylor@gtk.org>
(From: Christopher James Lahey <clahey@umich.edu>)
* gtk/gtkbutton.[ch] gtk/gtkenums.h gtk/gtktoolbar.[ch]
gtk/testgtk.c:
Added 'relief' for buttons - they can be either GTK_RELIEF_NORMAL
(old style), or GTK_RELIEF_NONE - no relief in the NORMAL
state. Added gtk_toolbar_{set,get}_button_relief, which set/get
the default relief for the toolbars buttons. Added an
toggle for the toolbar test in testgtk.c.
Manish Singh [Tue, 12 May 1998 10:04:05 +0000 (10:04 +0000)]
Add gmessages.c to Makefile
-Yosh
Owen Taylor [Tue, 12 May 1998 04:26:26 +0000 (04:26 +0000)]
Rewritten and hopefully improved.
Tue May 12 00:24:59 1998 Owen Taylor <otaylor@gtk.org>
* docs/gtk-config.1: Rewritten and hopefully improved.
Mon May 11 20:26:39 PDT 1998 Manish Singh <yosh@gimp.org>
* docs/Makefile.am
* docs/gtk-config.1: added man page for gtk-config by Ben Gertzfield
Owen Taylor [Tue, 12 May 1998 03:52:55 +0000 (03:52 +0000)]
Moved g_error, g_warning, g_message and g_print from gutils.c to new file
Mon May 11 21:11:54 1998 Owen Taylor <otaylor@gtk.org>
* gutils.c gmessages.c: Moved g_error, g_warning, g_message and
g_print from gutils.c to new file gmessages.c, to avoid having to
include <unistd.h> in gutils.c which was causing problems for the
g_strsignal implementation on FreeBSD boxes.
Federico Mena Quintero [Tue, 12 May 1998 03:15:45 +0000 (03:15 +0000)]
The commit to the stable branch is on its way...
1998-05-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkpreview.c (gtk_preview_realize): Create the window using
GtkPreview's visual and colormap, otherwise things can BadMatch.
* gtk/testgtk.c (create_color_preview):
(create_gray_preview): Removed pushing/popping of visual/colormap
now that GtkPreview does things correctly.
* gtk/gtkcolorsel.c (gtk_color_selection_draw_wheel_frame):
(gtk_color_selection_draw_wheel): Pick the style from the correct
place (the colorsel->wheel_area widget) so that the GCs will match
with where we are going to paint to.
* gtk/testgtk.c (create_color_selection): Removed pushing/popping
of visual/colormap now that GtkColorSelection does things the
right way.
Owen Taylor [Tue, 12 May 1998 01:02:56 +0000 (01:02 +0000)]
changed log
Owen Taylor [Tue, 12 May 1998 01:02:22 +0000 (01:02 +0000)]
Use the previously unused window->need_resize flag to mark if a window's
Mon May 11 21:04:51 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkwindow.c (gtk_real_window_move_resize): Use the
previously unused window->need_resize flag to mark if a window's
descendents changed size while the window was not visible. In this
case, when the window becomes visible, we reallocate everything,
since we didn't keep track of what actually changed.
(Fixes bug where changing the popdown strings of a
combo to something of the same length caused them to
blank out, as reported by Todd Dukes <tdukes@ibmoto.com>)